using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class MainGamePanelView : MonoBehaviour
{
    public Text text_JB;
    public Button but_AddJB, but_Shop, but_Role, but_Equipment;// but_ClosePanel;
    public Button begionGame;
    public Image zsPlay;
    public void OnCreatPanel()
    {
        text_JB = PanelManager.Instance.UIGamePanel.transform.Find("Up/Gold/GoldText").GetComponent<Text>();
        but_AddJB = PanelManager.Instance.UIGamePanel.transform.Find("Up/Gold/AddBtn").GetComponent<Button>();
        begionGame= PanelManager.Instance.UIGamePanel.transform.Find("Content/StartBtn").GetComponent<Button>();
        but_Shop = PanelManager.Instance.UIGamePanel.transform.Find("Right/ShopBtn").GetComponent<Button>();
        but_Role= PanelManager.Instance.UIGamePanel.transform.Find("Right/RoleBtn").GetComponent<Button>();
        but_Equipment = PanelManager.Instance.UIGamePanel.transform.Find("Right/EquipmentBtn").GetComponent<Button>();
        zsPlay = PanelManager.Instance.UIGamePanel.transform.Find("Content/RoleIcon").GetComponent<Image>();
        //but_ClosePanel= PanelManager.Instance.UIGamePanel.transform.Find("ClosePanel").GetComponent<Button>();
    }
    public void OnXiuGaiPlay(string name)
    {
        zsPlay.sprite = Resources.Load<Sprite>("Icon/" +name);
    }
}
